{include file="pub:header"/}
<script type="text/javascript">
 $(function(){
    $('.J_tablelist').listTable();
});

function editBat(id){
    if(!id || id.length==0) return alert("请选择一条记录");
    art.dialog.open("/admin/umen/editexp?ids="+id,{title:'批量修改',id:'cats',width:500,height:320,lock:true,fixed:true,close:function(){location.reload(true);}});
}

/*设置状态*/
function setStatus(id, status) {
	if (!id || id.length == 0) {
		return alert("请选择一条记录");
	}

	$('#myform').attr('action', "{:url('state')}");
	$('#state').val(status);
	$('#myform').submit();
}
function recharge(id){
	art.dialog.open('/admin/umen/recharge?cid='+id,{title:'账号充值',id:'win',width:900,height: 500,lock: true,fixed:true});
}
function charge(id){
	art.dialog.open('/admin/umen/charge?cid='+id,{title:'账号退款',id:'win',width:900,height: 500,lock: true,fixed:true});
}
function cashlog(id){
	art.dialog.open('/admin/umen/cashlog?cid='+id,{title:'资金明细',id:'win',width:900,height: 500,lock: true,fixed:true});
}
</script>
</head>
<body>

<div class="subnav">
    <div class="content_menu ib_a blue line_x">
        <a href="javascript:;"><span class="pagetitle">【数据库版本】</span></a>
	</div>
</div>
	<div class="pad_lr_10">

		<form action="{:url($tpl)}" method="get">
			<table width="100%" cellspacing="0" class="search_form">
				<tbody>
					<tr>
						<td>
							<div class="explain_col">
                                 版本名称
								<input name="keywords" type="text" class="input-text" size="20" value="{$keywords}">
								<input type="submit" name="search" class="btn" value="搜索" />
							</div>
						</td>
					</tr>
				</tbody>
			</table>
		</form>

		<div class="J_tablelist table_list">
			<form action="" id="myform">
			<input type="hidden" name="state" value="1" id="state">
				<table width="100%" cellspacing="0">

					<thead>
						<tr>
							<th align="left">ID</th>
							<th align="left">版本名称</th>
                            <th align="left">压缩</th>
                            <th align="left">数据大小</th>
                            <th align="left">创建时间</th>
                            <th>操作</th>
						</tr>
					</thead>

					<tbody>
						{volist name="list" id="vo"}
						<tr>
							<td align="left">{$vo['id']}</td>
							<td>{$vo['filename']}</td>
                            <td>{$vo['type']}</td>
                            <td>{$vo['size']}</td>
                            <td align="left">{$vo['time']|date="Y-m-d H:i"}</td>
							<td align="center">
                                【<a href="javascript:void(0);" onclick="ajaxget('{:url(\'delete\',array(\'id\'=>$vo[\'id\']))}','确认删除数据库【{$vo['filename']}】 ?');" title="点击删除">删除</a>】
							</td>
						</tr>
						{/volist}

						{empty name="list"}
						<tr>
							<td colspan="6" align="center">暂无数据 !</td>
						</tr>
						{/empty}

					</tbody>
				</table>
				</form>
		</div>

		<div class="btn_wrap_fixed">
			<div id="pages">{$page}</div>
		</div>
</div>
<include file="Public:footer" />
